/*
 * @Author: swl
 * @Date: 2023-07-04 15:48:02
 * @LastEditors: swl
 * @LastEditTime: 2023-07-04 15:50:18
 */
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'tok',
})
export class TokPipe implements PipeTransform {
  transform(value: number, ...args: unknown[]): string {
    return this.toK(value);
  }
  toK(value: number) {
    return value / 1000 + 'k';
  }
}
